package cn.edu.scau.cmi.tangqingning.simpleSingleton;

public class Chaiman {
    private static Chaiman chaiman = null;
    private String name = "";

    private Chaiman(String name){
        this.name = name;
    }

    public static Chaiman getInstance(String name){
        if(chaiman == null){
           chaiman = new Chaiman(name);
        }
        return chaiman;
    }

    public String getName(){
        return this.name;
    }
}
